import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as actions from './actions'
import state from './state'
import mutations from './mutations'
import createPersiste from 'vue-savedata'
const persiste = createPersiste({
  mode: 'SS'
})

Vue.use(Vuex)

const store = new Vuex.Store({
  state,
  mutations,
  getters,
  actions,
  plugins: [persiste]
})

export default store
